﻿<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:ee="http://schemas.microsoft.com/expression/2010/effects" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" x:Name="SignInWindow" x:Class="StudentManagement.SignIn"
        Title="Sign In" SizeToContent="WidthAndHeight" WindowStartupLocation="CenterScreen" WindowStyle="None" AllowsTransparency="True" Background="#00000000" mc:Ignorable="d" ResizeMode="NoResize" Visibility="Visible" UseLayoutRounding="False" AllowDrop="True" xmlns:my="clr-namespace:Telerik.Windows.Controls.RibbonBar.Primitives;assembly=Telerik.Windows.Controls.RibbonBar" TabIndex="0" Focusable="False" Loaded="SignInWindow_Loaded">
	<Window.Resources>
		<Style x:Key="btnMinimize2" TargetType="{x:Type Button}">
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Grid>
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualStateGroup.Transitions>
										<VisualTransition GeneratedDuration="0:0:0.3"/>
									</VisualStateGroup.Transitions>
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver">
										<Storyboard>
											<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Shape.Fill).(GradientBrush.GradientStops)[0].(GradientStop.Color)" Storyboard.TargetName="btnMinimize">
												<EasingColorKeyFrame KeyTime="0" Value="#FF55F3FF"/>
											</ColorAnimationUsingKeyFrames>
											<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="MinimizeContent">
												<EasingDoubleKeyFrame KeyTime="0" Value="1"/>
											</DoubleAnimationUsingKeyFrames>
										</Storyboard>
									</VisualState>
									<VisualState x:Name="Pressed"/>
									<VisualState x:Name="Disabled"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<Rectangle x:Name="btnMinimize" RadiusY="22" RadiusX="9" Stroke="#FFA21507" StrokeThickness="0.1">
								<Rectangle.Effect>
									<DropShadowEffect RenderingBias="Quality" Direction="0" ShadowDepth="0"/>
								</Rectangle.Effect>
								<Rectangle.Fill>
									<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
										<GradientStop Color="#FFF8FF82" Offset="0"/>
										<GradientStop Color="White" Offset="1"/>
									</LinearGradientBrush>
								</Rectangle.Fill>
							</Rectangle>
							<ContentPresenter x:Name="MinimizeContent" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Opacity="0.75" Margin="8.604,0,8,1.501" Height="24" VerticalAlignment="Bottom"/>
						</Grid>
						<ControlTemplate.Triggers>
							<Trigger Property="IsFocused" Value="True"/>
							<Trigger Property="IsDefaulted" Value="True"/>
							<Trigger Property="IsMouseOver" Value="True"/>
							<Trigger Property="IsPressed" Value="True"/>
							<Trigger Property="IsEnabled" Value="False"/>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</Window.Resources>
    <Border BorderBrush="Silver" BorderThickness="0" Height="201" x:Name="ShapeBorder" Width="294" CornerRadius="200,12,100,200" Margin="17" RenderTransformOrigin="0.5,0.5" Focusable="False">
    	<Border.RenderTransform>
    		<TransformGroup>
    			<ScaleTransform ScaleY="1" ScaleX="1"/>
    			<SkewTransform AngleY="0" AngleX="0"/>
    			<RotateTransform Angle="0"/>
    			<TranslateTransform/>
    		</TransformGroup>
    	</Border.RenderTransform>
    	<Border.Effect>
    		<DropShadowEffect RenderingBias="Quality" Direction="0" BlurRadius="17"/>
    	</Border.Effect>
    	<Border.Background>
    		<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
    			<GradientStop Color="#FFB8F9F2" Offset="0.487"/>
    			<GradientStop Color="#FFDAF7ED" Offset="1"/>
    			<GradientStop Color="#FFC0EBFF"/>
    		</LinearGradientBrush>
    	</Border.Background>
        <Grid x:Name="ContentGrid" Focusable="False">
            <Grid.ColumnDefinitions>
            	<ColumnDefinition Width="351" />
            	<ColumnDefinition Width="0" />
            </Grid.ColumnDefinitions>
        	<Image x:Name="imgTeacher" Margin="26.77,38.951,0,34.052" Source="Properties/teacher.png" Stretch="Fill" HorizontalAlignment="Left" Width="127.998"/>
        	<Label x:Name="LoginTitle" Content="SAS"  VerticalAlignment="Top" FontSize="32" Margin="129.785,13.339,135,0" Foreground="#FF279B3E" d:LayoutOverrides="Width"/>
        	<Label x:Name="labelUsername" Content="Username:" HorizontalAlignment="Right" Margin="0,60.301,151.186,0" Padding="0" FontSize="13.333" VerticalAlignment="Top" />
        	<Label x:Name="labelPassword" Content="Password:" HorizontalAlignment="Right" Margin="0,100.165,154.786,82.35" RenderTransformOrigin="0.281,1.03" Padding="0" FontSize="13.333" d:LayoutOverrides="Height"/>
        	<Button x:Name="btnSignIn" Content="Sign In" Margin="0,102.136,57.006,0.052" FontSize="16" FontWeight="Bold" IsTabStop="False" HorizontalAlignment="Right" Width="99.17" Template="{DynamicResource WaveEffectTemplate}" Click="btnSignIn_Click" KeyUp="btnSignIn_KeyUp" Focusable="False" IsEnabled="False" Panel.ZIndex="0">
        		<Button.Background>
        			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        				<GradientStop Color="Black"/>
        				<GradientStop Color="White" Offset="1"/>
        			</LinearGradientBrush>
        		</Button.Background>
        	</Button>
        	<Label x:Name="labelSignInLogo" Content="Sign In" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,35.872,108.72,0" FontSize="13.333" Background="#00C61111" Foreground="#FF0A246A" FontWeight="Bold"/>
        	<Path x:Name="UpperBorder" Data="M104.95931,0.5 L104.97486,-0.12768884 187.42453,0.028435094 C190.82149,0.063459044 195.35893,0.81899197 198.63627,3.584599 201.8042,6.748184 201.71582,10.820349 201.744,13.991211 L201.74425,22.982513 -20.919917,22.982513 -7.0340911,17.400659 C-3.0838093,16.082916 0.92636613,14.903518 4.9366635,13.752078 L12.708798,11.547894 24.903985,8.6252564 37.062319,6.2911903 49.004996,4.3694853 60.446123,2.7657532 71.681958,1.6817921 84.327455,0.69544072 91.582777,0.49217216 96.361407,0.37322156 z" Height="24.66" Margin="70.232,-0.66,57,0" Opacity="0.695" Stretch="Fill" Stroke="Black" VerticalAlignment="Top" StrokeThickness="1" MouseDown="UpperBorder_MouseDown" >
        		<Path.Effect>
        			<BlurEffect RenderingBias="Quality"/>
        		</Path.Effect>
        		<Path.Fill>
        			<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        				<GradientStop Color="#FF007FFF" Offset="1"/>
        				<GradientStop Color="#FFBEEFFB" Offset="1"/>
        			</LinearGradientBrush>
        		</Path.Fill>
        	</Path>
            <TextBox Height="23" HorizontalAlignment="Left" Margin="137.824,78.034,0,0" Name="tbUsername" VerticalAlignment="Top" Width="104.456" TabIndex="0" TextChanged="tbUsername_TextChanged" KeyUp="tbUsername_KeyUp" />
            <PasswordBox Height="23" HorizontalAlignment="Left" Margin="137.711,116.259,0,0" Name="pbPassword" VerticalAlignment="Top" Width="104.569" TabIndex="1" PasswordChanged="pbPassword_PasswordChanged" KeyUp="tbPassword_KeyUp" />
            <Button x:Name="btnClose" Content="X" HorizontalAlignment="Right" Height="20" Margin="0,1.999,58.875,0" Style="{DynamicResource btnClose}" VerticalAlignment="Top" Width="28" FontSize="16" FontWeight="Bold" FontFamily="Tahoma" Focusable="False" Click="btnClose_Click" />
            <Button x:Name="btnMinimize" Content="-" HorizontalAlignment="Right" Height="20" Margin="0,1.999,89.458,0" Style="{DynamicResource btnMinimize2}" VerticalAlignment="Top" Width="28" FontSize="26.667" FontWeight="Bold" HorizontalContentAlignment="Center" FontFamily="Tahoma" Focusable="False" Click="btnMinimize_Click" />
            <Label Height="28.333" HorizontalAlignment="Left" Margin="127,140.666,0,0" Name="lbSingInError" VerticalAlignment="Top" FontSize="10" Width="92.334" Foreground="Red" Visibility="Hidden" Padding="0"></Label>
        </Grid>
    </Border>
</Window>
